home *** CD-ROM | disk | FTP | other *** search
/ Critical Care Nursing - A…roach - Student Resource / Critical Care Nursing - A Holistic Approach - Student Resource CD-ROM.iso / pc / Student Materials / NCLEX Alternate Item Format / question8HotSpot.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2008-02-13  |  509 b   |  30 lines

  1. function ShowHotSpot()
  2. {
  3.    HotSpot._visible = true;
  4.    HotSpot._alpha = 50;
  5. }
  6. function CheckSpot()
  7. {
  8.    if(Spot.hitTest(HotSpot))
  9.    {
  10.       _root.QuestionCorrect[3] = true;
  11.    }
  12.    else
  13.    {
  14.       _root.QuestionCorrect[3] = false;
  15.    }
  16. }
  17. HotSpot._alpha = 0;
  18. Spot._visible = false;
  19. Spot._alpha = 75;
  20. var answered = false;
  21. ClickZone.onPress = function()
  22. {
  23.    Spot._x = _xmouse - 7;
  24.    Spot._y = _ymouse - 7;
  25.    Spot._visible = true;
  26.    answered = true;
  27.    CheckSpot();
  28. };
  29. stop();
  30.